<?php
// Load Header
$this->set("title_for_layout", $category['NewsCategory']['name']);

echo $this->Html->css('customScrollbar', 'stylesheet', array('type' => 'text/css'));
echo $this->Html->css('news_detail', 'stylesheet', array('type' => 'text/css'));
?>
<div class="content_above">
	<div id="mcs3_container" class="main_content">
		<div class="customScrollBox">
			<div class="container">
				<div class="wd-detail-article content">
					<h4 class="wd-title"><?php echo $article['News']['title']?></h4>
					<span class="wd-date"><?php echo date("d/m/Y", strtotime($article['News']['news_date']));?></span>
					<?php echo $article['News']['content'];?>
					<div class="wd-other-news">
						<h3>Tin khác</h3>
						<ul>
                            <?php foreach ($other_news as $item):?>
							<li>
								<a href="<?php echo $html->url(array('plugin' => 'news', 'controller' => 'news', 'action' => 'view', $item['News']['alias'], $category['NewsCategory']['alias']));?>"><?php echo $this->text->new_truncate($item['News']['title'], 35)?><span>(<?php echo date("d/m/Y", strtotime($item['News']['news_date']));?>)</span></a>
							</li>
						  <?php endforeach;?>							
						</ul>
					</div>
				</div>
			</div>
			<div class="dragger_container">
				<div class="dragger"></div>
			</div>
		</div>
	</div>
	<?php    
    $news_category = $this->requestAction('elements/get_news_category');
    ?>
    <div class="right_content">
    <h1 class="title"><?php echo __('TIN TỨC'); ?><h1>
    <ul>
        <?php foreach($news_category as $cat): ?>
       <li <?php if(  $category['NewsCategory']['name'] == $cat['NewsCategory']['name']) echo 'class="current"'  ?>><a href="<?php echo $html->url(array('plugin' => 'news','controller' => 'news','action' => 'listnews',$cat['NewsCategory']['alias'])) ?>"><?php echo $cat['NewsCategory']['name'] ?></a></li>
        <?php endforeach;?>
    </ul>
    </div>
</div>
<?php
echo $this->Html->script('jquery-ui.min.js', array('type' => 'text/javascript'));	
echo $this->Html->script('jquery.mousewheel.min.js', array('type' => 'text/javascript'));	
echo $this->Html->script('jquery.easing.1.3.js', array('type' => 'text/javascript'));	
echo $this->Html->script('news.js', array('type' => 'text/javascript'));
echo $this->Html->script('jquery.mCustomScrollbar.js', array('type' => 'text/javascript')); ?>